#!/bin/sh
#Por 777User: ultra dma activation for linux
#Copyright(c) 2005-2006 Luciano Andress Martini 
udma=`grep -i noudma /proc/cmdline`
if [ "$udma" != "" ]; then exit 0; fi 
if [ -e /etc/nohdparm ]; then exit 0; fi 
cd /proc/ide
for ide in hd*; do
echo -e -n '\e[33;1Activating ultradma for \e[m'
echo -n "$ide  "
hdparm -qc3 -qd1 /dev/$ide
echo -e '\e[32;1mOK\e[m'
done

